/*
 *  Copyright 2023 Collate.
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *  http://www.apache.org/licenses/LICENSE-2.0
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
@import (reference) '../../../styles/variables.less';

.tippy-box {
  max-width: 400px !important;
}

.block-menu {
  max-height: 300px;
  padding: 12px 0px;
  background-color: @white;
  border: @global-border;
  border-radius: @border-rad-base;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;

  .action {
    background: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    padding: 4px 12px;
    cursor: pointer;
    transition: all 0.2s;

    &:disabled {
      cursor: not-allowed;
    }

    &:hover {
      background-color: @grey-2;
    }

    .action-icon-container {
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .action-name {
      font-family: inherit;
      font-size: 0.95rem;
    }
  }
}
